@extends('Admin.layouts.common')

@section('content')
    <div class="container myContainer">

        @if(count($errors))
            <div class="alert alert-danger">
                <ul>
                    @foreach($errors->all() as $err)
                        <li>{{ $err }}</li>
                    @endforeach
                </ul>
            </div>
        @endif
        

        <form method="get">
            {{ csrf_field() }}

            <div class="form-group required">
                <label class="control-label">分类</label>
                <select class="form-control" name="cat_id">
                    <option value="">请选择分类</option>
                    @foreach($cat as $c)
                        <option value="{{ $c->id}}" ><?=str_repeat("&nbsp",$c->level*4)?>{{ $c->cat_name}}</option>
                    @endforeach
                </select>
            </div>
            
            <div class="form-group">
                <button class="btn btn-primary btn-block" type="submit">继续添加商品</button>
            </div>
        </form>
    </div>
@endsection


@section('foot')
@endsection
